#include<reg51.h>
void delay(int n)
{
int i=0;
for(i=0;i<n;i++);
}

void main()
{
  char var[10]={0xC0,0xF9,0XA4,0XB0,0X99,0X92,0X82,0XF8,0X80,0X90};
  int i=0;
  while(1)
  {
   for(i=0;i<10;i++)
   {
    P1=var[i];
	delay(32700);
   }

}
}